package com.e3.sysmg.security.model;

import java.util.Date;
import java.util.List;

import com.e3.web.core.model.SuperModel;

public class UserModel extends SuperModel implements UserFields{

	private static final long serialVersionUID = 2996282805277341834L;

	private String code;
	
	private String name;
	
	private String password;
	
	private Date startDate;
	
	private Date endDate;
	
	private String status;
	
	private List<RoleModel> roles;

	public String getCode() {
		return get(UserFields.CODE);
	}

	public void setCode(String code) {
		set(UserFields.CODE,code);
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getPassword() {
		return get(UserFields.PASSWORD);
	}

	public void setPassword(String password) {
		set(UserFields.PASSWORD,password);
	}

	public Date getStartDate() {
		return get(UserFields.START_DATE);
	}

	public void setStartDate(Date startDate) {
		set(UserFields.START_DATE,startDate);
	}

	public Date getEndDate() {
		return get(UserFields.END_DATE);
	}

	public void setEndDate(Date endDate) {
		set(UserFields.END_DATE,endDate);
	}

	public String getStatus() {
		return get(UserFields.STATUS);
	}

	public void setStatus(String status) {
		set(UserFields.STATUS,status);
	}

	public List<RoleModel> getRoles() {
		return get(UserFields.ROLES);
	}

	public void setRoles(List<RoleModel> roles) {
		set(UserFields.ROLES,roles);
	}

}
